<%@ page import="java.util.List" %>
<%@ page import="src.com.atliuhaoweb.pojo.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/2
  Time: 16:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户列表</title>
    <style>
        table{
            border: 1px solid #000000;
            border-collapse: collapse;
            width: 600px;
            text-align: center;
        }
        table tr td , th{
            border: 1px solid #000000;
            text-align: center;
        }
    </style>
</head>
<body>
<%
    List<User> userList = (List<User>) request.getAttribute("userList");
%>
<%--    显示用户列表信息--%>
<table align="center">
    <tr>
        <th>ID</th>
        <th>用户名</th>
        <th>密码</th>
        <th>邮箱</th>
    </tr>
    <%for(User user : userList){%>
        <tr>
            <td><%=user.getId()%></td>
            <td><%=user.getUsername()%></td>
            <td><%=user.getPassword()%></td>
            <td><%=user.getEmail()%></td>
        </tr>
    <%}%>
</table>
</body>
</html>
